﻿/*
 *
 *
 */

using Abp.Domain.Entities.Auditing;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using static SOEI.Solution.AppCoreConst;

namespace SOEI.Solution.DomainEntities.RoomSourceVerifiy
{
    /// <summary>
    /// 房源核验表
    /// </summary>
    public class RoomVerify : AuditedEntity<long>
    {

        #region -------------------------------------------------实体属性---------------------------------------------- 

        ///<summary>
        /// 产权证编号
        ///</summary>
        [Description("产权证编号")]
        [MaxLength(EntityLength.Length20)]
        public string CertificateCode { get; set; }

        ///<summary>
        /// 产权证号
        ///</summary>
        [Description("产权证号")]
        [MaxLength(EntityLength.Length50)]
        public string CertificateName { get; set; }
        ///<summary>
        /// 状态编码
        ///</summary>
        [Description("状态编码")]
        [MaxLength(EntityLength.Length20)]
        public string StateCode { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        [Description("备注信息")]
        public string Remark { get; set; }

        #endregion

        #region -------------------------------------------------用户定义---------------------------------------------- 
        /* 这里创建自己的代码 */

        /// <summary>
        /// 该房源下的所有申请
        /// </summary>
        [NotMapped]
        public virtual ICollection<RoomVerifyApply> RoomVerifyApplys { get; set; }

        /// <summary>
        /// 产权证号
        /// </summary>
        [Description("产权证号")]
        public string PropertyCardNum { get; set; }

        /// <summary>
        /// 房屋坐落
        /// </summary>
        [Description("房屋坐落")]
        public string HouseLocated { get; set; }

        /// <summary>
        /// 产权状态
        /// </summary>
        [Description("产权状态")]
        public int PropertyState { get; set; }
        #endregion

        #region -------------------------------------------------导航属性---------------------------------------------- 

        [NotMapped]
        public virtual ICollection<RoomVerifyProperty> RoomVerifyPropertys { get; set; }
        #endregion
    }
}
